<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<script src="jquery.js"></script>
	<script type="text/javascript">
		function sendData() {
			$.get("testSerial.php", {data: $('#data').val()});
		}
		
		$(document).ready(function() {
			$('#submitButton').click(sendData())
			$('#data').keypress(function(e)
			{
     			if (e.which == 13) 
     			{
     				sendData();
     			}
     		})
		});
	</script>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Arduino Remote Control</title>
    </head>
    <body>
        <h1>Manual Control</h1>
        <input id="data" type="text" name="data" />
        <input id="submitButton" type="button" value="OK" />
    </body>
</html>
